package com.sofwin.service;

import com.github.pagehelper.PageInfo;
import com.sofwin.dto.ResourceDto;
import com.sofwin.pojo.SysRole;

import java.util.List;
import java.util.Set;

/**
 * @packageName: com.sofwin.service
 * @user: andyliu
 * @date: 2023/5/17 15:48
 * @email 115176513@qq.com
 * @description: TODO
 */

public interface RoleService {

    boolean saveOrUpdateRole(SysRole role);

    boolean removeById(Integer id);

    boolean removeById(Integer[] ids);

    SysRole queryById(Integer id);

    PageInfo<SysRole> quryByPage(SysRole role,Integer pageNumber,Integer pageSize);

    boolean saveRoleResources(Integer[] resourceIds,Integer roleId);

    List<ResourceDto> queryResourcesByRoleId(Integer roleId);

    Set<String> queryRolePermissions(Integer roleId);
}
